<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
<script src="./js/axios.min.js"></script>
    <script>
	//axios.get('http://localhost:3000/axios',{
	//params:{ id:3}
	//}).then((data)=>{return 
	//data.text()}).then((data)=>{console.log(data)})
	
	axios.defaults.baseURL='http://localhost:3000'
	async function Handle(){
		const {data:res}=await axios.get('/axios',{
			params:{
				id:6
			}
		})
		console.log(res)
	}
	Handle()
    </script>	
</body>

</html>